$class-prefix-toast: rt-toast;

.#{$class-prefix-toast}-mask {
  
  .#{$class-prefix-toast}-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
  }

  .#{$class-prefix-toast}-main {
    display: inline-block;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    max-width: 200px;
    max-height: 70%;
    overflow: auto;
    color: white;
    word-break: break-all;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    pointer-events: all;
    font-size: var(--rt-size-12);
    line-height: 1.5;
    box-sizing: border-box;
    text-align: initial;
  }

  .#{$class-prefix-toast}-main-text {
    padding: 12px;
    min-width: 0px;
  }

  .#{$class-prefix-toast}-main-icon {

    padding: 22px 12px;
    min-width: 150px;

    .#{$class-prefix-toast}-icon {
      text-align: center;
      margin-bottom: 8px;
      line-height: 1;

      &-success {
        color: var(--rt-color-success);
      }

      &-fail {
        color: var(--rt-color-danger);
      }

      &-warning {
        color: var(--rt-color-warning);
      }
    }
  }
}

.#{$class-prefix-toast}-loading {
  margin: 0 auto 0px;
  animation: rt-toast-loading-rotate 0.8s infinite linear;
}

@keyframes rt-toast-loading-rotate {

  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}
